// 错误处理模块
pub mod call_frame;
pub mod compiler_error;
pub mod error_level;
pub mod errorkind;
pub mod runtime_error;
pub mod suggestion;

// 重新导出主要类型
pub use errorkind::ErrorKind;
pub use runtime_error::{
    RuntimeError, argument_mismatch_error, constant_reassignment_error, division_by_zero_error,
    index_out_of_bounds_error, invalid_function_call_error, invalid_operation_error,
    out_of_scope_error, type_mismatch_error, undefined_function_error, undefined_identifier_error,
};
pub use suggestion::{
    SuggestionGenerator, generate_compiler_suggestion, generate_runtime_suggestion,
    generate_suggestion_from_message,
};

pub use call_frame::CallFrame;
pub use compiler_error::CompilerError;
pub use error_level::ErrorLevel;

// 测试模块
#[cfg(test)]
mod tests;
